<template>
	<view class="details-page">
		<u-navbar title="公告详情" :placeholder="true" :autoBack="true" bgColor="rgba(0,0,0,0.0)">
		</u-navbar>
		<view class="content">
			<u-parse :content="content"></u-parse>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				content: '',
				id: ''
			}
		},
		onLoad(e) {
			this.id = e.id
			this.getnoc()
		},
		methods: {
			getnoc() {
				let parasm = {
					id: this.id
				}
				this.$Request({
					method: 'GET',
					url: '/api/goods/announcement/detail',
					data: parasm,
					ismsg: false,
				}).then(res => {
					if (res.code == 200) {
						this.content = res.data.content
					}
				})
			},
		}
	}
</script>

<style scoped lang="scss">
	.details-page {
		min-height: calc(100vh - 91rpx);
		background-image: url('../../../static/goods/top-bg.png');
		background-size: 100% 561rpx;
		background-repeat: no-repeat;

		.content {
			padding: 30rpx;
			word-break: break-all;
		}
	}
</style>